package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 与越秀交互审核表
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("lease_reconnaissance")
@ApiModel(value = "LeaseReconnaissance对象", description = "与越秀交互审核表")
public class LeaseReconnaissance implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单ID")
    private String orderId;

    @ApiModelProperty("阶段	[	tenant：预审（预审）；	operating：勘察（进件推送）；	sign：并网（农户投放审查）；	olfile：发用电合同信息（租后购售电合同补充推送）	]")
    private String stage;

    @ApiModelProperty("订单状态：	事件+状态+动作	eg：	YSXX_WAITING_FILLED  预审信息待填写	TKXX_WAITING_INNER_AUDIT  踏勘信息内审	 	")
    private String state;

    @ApiModelProperty("表单信息")
    private String approval;

    @ApiModelProperty("原因")
    private String reason;

    private String reasonImages;

    private String reasonVideos;

    private String reasonFiles;

    @ApiModelProperty("状态[0：待审核；1：审核通过，待越秀审核；2：审核不通过；3：越秀审核通过；4：越秀审核不通过]")
    private Byte status;

    @ApiModelProperty("越秀返回的拒绝原因")
    private String leaseReason;

    @ApiModelProperty("发给越秀的body数据")
    private String leaseBody;

    @ApiModelProperty("越秀审核状态[0：待审核；1：审核通过；2：审核拒绝]")
    private Byte leaseState;

    @ApiModelProperty("是否已将审核信息展示给APP端")
    private Byte toShow;

    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
